package com.sharemarking.system.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.sharemarking.wa.common.entity.Dict;

public interface DictMapper {
	@Select("SELECT * FROM sys_dict WHERE del_flag=0 AND type=#{type} AND value=#{value}")
	Dict getByTypeAndValue(@Param("type")String type,@Param("value")String value);
	@Select("SELECT * FROM sys_dict WHERE del_flag=0 AND type=#{type}")
	List<Dict> getByType(@Param("type")String type);
}
